<template>
	<view>
		<view class="content">
			<view class="list">
<!-- 				<view class="row" @click="goto('phoneNumber', { oldNumber: userState.mobilePhone})">
					<view class="title">手机号</view>
					<view class="right">
						<view class="tis">{{userState.mobilePhone}}</view>
						<view class="icon">&#xe62d;</view>
					</view>
				</view> -->
				<view class="row" @click="goto('password', { mobilePhone: userState.mobilePhone })">
					<view class="title">修改登陆密码</view>
					<view class="right">
						<view class="tis"></view>
						<view class="icon">&#xe62d;</view>
					</view>
				</view>
				<view class="row" @click="goto('address')">
					<view class="title">收货地址</view>
					<view class="right">
						<view class="tis"></view>
						<view class="icon">&#xe62d;</view>
					</view>
				</view>
			</view>
			<view class="list" @click="goto('introduce')">
				<view class="row">
					<view class="title">关于我们</view>
					<view class="right">
						<view class="icon icon1">&#xe655;</view>
						<view class="icon">&#xe62d;</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {  
	    mapState,  
	} from 'vuex';  
	export default {
		data() {
			return {
			};
		},
		computed: { 
		    ...mapState(['userState']) 
		},
		methods: {
			showType(tbIndex){
				this.tabbarIndex = tbIndex;
				this.list = this.orderList[tbIndex];
			},
			goto (name, param = {}) {
				if(name === 'address') {
					this.$openRouter({
						url: `../${name}/${name}`,
						query: param
					})
				} else if (name === 'introduce') {
					window.location.href = 'https://mp.weixin.qq.com/s/EtjTrKXK4Q7EAtZpHscZCA'
				} else {
					this.$openRouter({
						url: `./${name}/${name}`,
						query: param
					})
				}

			},
		}
	}
</script>

<style lang="scss">
page{
	background-color: #f3f3f3;	
}
@font-face {
	font-family: 'iconfont';
	src: url('../../css/font/iconfont.eot');
	src: url('../../css/font/iconfont.eot?#iefix') format('embedded-opentype'),
	url('../../css/font/iconfont.woff') format('woff'),
	url('../../css/font/iconfont.ttf') format('truetype'),
	url('../../css/font/iconfont.svg#iconfont') format('svg');
}
.icon {
	font-family:"iconfont" !important;
	font-weight: 200;
	font-size: 30upx;
	font-style:normal;
	-webkit-font-smoothing: antialiased;
	-webkit-text-stroke-width: 0.2px;
	-moz-osx-font-smoothing: grayscale;
	cursor: pointer;
	&:hover {
		color: #E80505;
	}
}
.icon1 {
   font-size: 44upx;
   color: #333 !important;
}

.content{
	padding-bottom: 20upx;
	.list{
		width: 96%;
		padding-left: 4%;
		background-color: #fff;
		margin-bottom: 20upx;
		.row{
			widows: 100%;
			min-height: 90upx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: solid 1upx #eee;
			&:last-child{
				border-bottom: none;
			}
			.title{
				font-size: 32upx;
				color: #333;
			}
			.right{
				display: flex;
				align-items: center;
				color: #999;
				.tis{
					font-size: 26upx;
					margin-right: 5upx;
					max-height: 120upx;
					image{
						width: 100upx;
						height: 100upx;
						border-radius: 100%;
						margin: 10upx 0;
					}
				}
				.icon{
					width: 40upx;
					color: #cecece;
				}
			}
			
		}
	}
}

</style>
